﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;


namespace Web.group
{
    public partial class phonebookadd : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btn_save_Click(object sender, EventArgs e)
        {
            Hashtable user = PhoneBook.Users.Users.get(Commons.StrUtil.FormatValue(Session["userid"]));

            Hashtable phonebook = new Hashtable();
            phonebook["phonebookname"] = txb_phonebookname.Text;
            phonebook["groupid"] = user["groupid"];
            phonebook["boid"] = user["bo"];

            PhoneBook.Group.PhoneBook.add(phonebook);
            AddLog("新添加了通讯录：{0}", phonebook["phonebookname"]);
            Helper.ShowMessage(u_message, controls.UCMessageType.success, "保存成功");
        }   
    }
}